package com.coment.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;

/// 玩家账户
@ToString
@Data
public class UserAccount {
    @JsonIgnore
    @Id
    private String id;

    @Indexed(unique = true)
    public Integer userInfoId;

    /// 货币 1.卡包 2.灵石 3.灵果 4.技能点
    public Double[] currency;

    /// 累计充值
    public int cumulativeOfRecharge;

    public UserAccount() {
        currency = new Double[]{0D, 0D, 0D, 0D, 0D, 0D, 0D, 0D};
    }
}
